package com.ebt.m.utils;

import android.os.Environment;

import com.ebt.m.BuildConfig;

import java.io.File;

public class ConfigData {

    public static final boolean DEBUG = false;
    /**
     * 切换版本(测试版或者正式版), false代表正式版，如果要改为true，请在本地修改，不要提交
     */
    public static final boolean VERSION_TEST = BuildConfig.ISDEBUG ? true : false;
    /**
     * 数据库版本号
     */
    public static final int db_version = 1;
    public static final String APP_ROOT_NAME = "junbaoge";
    public static final String SD_CARD_PATH = Environment.getExternalStorageDirectory().getAbsolutePath();// SD卡路径
    public static final String DATA_PATH = SD_CARD_PATH + File.separator + APP_ROOT_NAME;// 卡上的数据文件路径
    public static final String DATA_PATH_CRASH = DATA_PATH + File.separator + "crash" + File.separator;// 卡上的数据文件路径
    public static final String DATABASE_PATH = DATA_PATH;// 卡上的数据库文件路径
    public static final String DATABASE_FILENAME = "ebt.db";// 数据库文件名称,扩展名可以任意
    public static final String DATABASE = DATABASE_PATH + File.separator + DATABASE_FILENAME;// 卡上的数据库文件
    public static final String PORTRAITPATH = DATABASE_PATH + File.separator + "portrait";
    public static final String REPOSITORY_PATH = DATA_PATH + File.separator + "repository";// 我的资源库路径
    public static final String HELPERDATABASE_PATH = DATABASE_PATH + File.separator + "helper";// 卡上的数据库文件路径
    public static final String HELPERDATABASE_NAME = "helper.db";// 卡上的数据库文件
    public static final String HELPERDATABASE = HELPERDATABASE_PATH + File.separator + HELPERDATABASE_NAME;//

    public static final String CACHE_PATH = DATA_PATH + File.separator + "cache" + File.separator;// 卡上的数据库文件路径
    /**
     * 计划日历资源库路径
     **/
    public static final String CALENDAR_PATH = DATA_PATH + File.separator + "res" + File.separator + "calendar";//
    /**
     * 压缩图片路径
     **/
    public static final String Compressed_pic_PATH = DATA_PATH + File.separator + "compressed";//

    public static final String PATH_RESOURCES = DATA_PATH + File.separator + "wikibrand" + File.separator;

    /**
     * 宜保通apk下载路径
     */
    public static final String UPDATE_APK_PATH = SD_CARD_PATH + File.separator + "ebt_update";
    /**
     * 宜保通apk下载文件路径
     */
    public static final String UPDATE_APK_FILE_PATH = UPDATE_APK_PATH + File.separator + "EBT.app.apk";

    public static final String APK_UPDATE_PATH = APP_ROOT_NAME + File.separator + "update" + File.separator + "apk";

    public static final String PATH_CACHE_PDFS = DATA_PATH + File.separator + "cache" + File.separator + "pdf";
    public static final String HOST_NAME = "http://www.e-baotong.cn/";
    public static final String HOST_NAME_CAS = VERSION_TEST ? "http://api.test.e-baotong.cn/cas/" : "http://ws.e-baotong.cn:8085/";
    public static final String HOST_NAME_UAC = "http://uacserver.e-bao.cn:8086/";

    /**
     * CAS用URL
     */
    public static final String URL_CAS_WSDL = HOST_NAME_CAS + "CASServer.asmx?wsdl";
    public static final String URL_CAS_XMLNS = "http://songlink.org/";
    public static final String URL_CAS_REQUESTDEVICESERVICE_ACTION = "http://songlink.org/RequestDeviceServiceWithLogInfo";
    public static final String URL_CAS_REQUESTDEVICESERVICE_METHOD = "RequestDeviceServiceWithLogInfo";

    /**
     * 云计划书事件
     */

    public static final String URL_UAC_WSDL = HOST_NAME_UAC + "UACService.asmx?wsdl";
    public static final String URL_UAC_ACTION = "http://www.songlink.uac.cn/RequestSecretDeviceService";
    public static final String URL_UAC_XMLNS = "http://www.songlink.uac.cn/";
    public static final String URL_UAC_METHOD = "RequestSecretDeviceService";

    // 相册图片路径
    public static final String PHOTO_PATH = CALENDAR_PATH + File.separator + "photo";
    public static final String PHOTO_DEFAULT_FILE = PHOTO_PATH + File.separator + "default.png";
    public static final String PHOTO_SELETED = PHOTO_PATH + File.separator + "select.png";

    /**
     * 头像大小
     */
    public static final int PORTRAIT_WIDTH = 200;
    public static final int PORTRAIT_HEIGHT = 200;

    /**
     * api接口同意base-url
     */
    public static final String API_BASE_URL = VERSION_TEST ? "http://mzyj.test.e-baotong.cn/api/" : "http://p.e-bao.cn/api/";
    /**
     * 产品相关请求路径base—url
     */
    public static final String PRODUCT_BASE_URL = VERSION_TEST ? "http://datapi.test.e-baotong.cn/dat/" : "https://datapi.e-bao.cn/dat/";
    /**
     * 1.4.1新版统一接口
     */
    public static final String BASE_URL = VERSION_TEST ? "http://api.test.e-baotong.cn/" : "https://api.e-bao.cn/";

    public static final String[] WEEKSTRS = new String[]{"周日", "周一", "周二", "周三", "周四", "周五", "周六"};

    public static final String FEEDBACK_URL = "http://bsns.insiap.com:8090/common/feedback";
    public static final String FEEDBACK_TYPES_URL = "http://bsns.insiap.com:8090/common/syscode";

    public static final String WECHAT_APPID = "wx9c452d87182bffc9";

    public static final String WECHAT_SECRET = "2cb3806f7c1da1aba66f6b97daf5373d";

    public static final String WEIBO_APPID = "3835945828";

    public static final String WEIBO_REDRIECT_URL = "http://www.e-baotong.cn";

    public static final String QQ_APPID = "1106832128";


    public static final String EBT_ROOT_PATH = SD_CARD_PATH + File.separator + APP_ROOT_NAME;// 卡上的EBT根路径路径
    public static final String DB_DATA_PATH = EBT_ROOT_PATH + File.separator + "ebt.db";
    public static final String WIKI_DATA_PATH = EBT_ROOT_PATH + File.separator + "wikibrand";// 卡上的数据文件路径
    public static final String ENGINE_NAME = "engine_dex.jar";
    public static final String PMS_ENGINE_NAME = "PMSEngine_dex.jar";
    public static final String ENGINE_PATH = EBT_ROOT_PATH + File.separator + ENGINE_NAME;
    public static final String PMS_ENGINE_PATH = EBT_ROOT_PATH + File.separator + PMS_ENGINE_NAME;
    public static final File OPTIMIZEDDEXOUTPUTPATH = new File(ENGINE_PATH);// 动态加载
    public static final String EBT_CARD_PATH = EBT_ROOT_PATH + File.separator + "res" + File.separator + "card";// 常量coverage
    public static final String EBT_HELPER_PATH = EBT_ROOT_PATH + File.separator + "res" + File.separator + "helper";
    public static final String EBT_CUSTOMER_ATTACHMENT = EBT_ROOT_PATH + File.separator + "customer_attachment";

    public static final String DATABASE_RATE = "rate";// 大费率表数据库


    /**
     * 共享用户文件信息,
     */
    public static final String SHAREDPREFERENCES_USERKEYINFO = "USER_KEY_INFO";
    public static final String SHAREDPREFERENCES_USERID = "USER_ID";
    public static final String SHAREDPREFERENCES_USERNAME = "USER_NAME";
    public static final String SHAREDPREFERENCES_PASSWORD = "PASSWORD";
    public static final String SHAREDPREFERENCES_PUBLICK_KEY = "PUBLIC_KEY";
    public static final String SHAREDPREFERENCES_PRIVATE_KEY = "PRIVATE_KEY";
    public static final String SHAREDPREFERENCES_ACCESSTOKEN = "ACCESS_TOKEN";
    public static final String SHAREDPREFERENCES_AUTHENTICATIONSTATUS = "AUTHENTICATIONSTATUS";
    public static final String SHAREDPREFERENCES_LAST_LOGIN_ACCOUNT = "last_login_account";
    public static final String SHAREDPREFERENCES_PHONE = "SHAREDPREFERENCES_PHONE";
    //公司信息
    public static final String SHAREDPREFERENCES_COMPANYID = "COMPANY_ID";
    public static final String SHAREDPREFERENCES_COMPANY_IMG = "COMPANY_IMG";
    public static final String SHAREDPREFERENCES_COMPANY_MINI_IMG = "COMPANY_MINI_IMG";
    public static final String SHAREDPREFERENCES_COMPANY_NAME = "COMPANY_NAME";
    public static final String SHAREDPREFERENCES_COMPANY_NAME_FOR_ZYJ = "COMPANY_NAME_FOR_ZYJ";
    public static final String SHAREDPREFERENCES_COMPANYCATEGORY = "COMPANY_CATEGORY";
    //erp名片信息
    public static final String SHAREDPREFERENCES_IMG_URL = "IMG_URL";
    public static final String SHAREDPREFERENCES_NAME = "NAME";
    public static final String SHAREDPREFERENCES_COMPANYNAME = "COMPANYNAME";
    public static final String SHAREDPREFERENCES_EMPLOYEENO = "EMPLOYEENO";
    public static final String SHAREDPREFERENCES_ERP_PHONE = "ERP_PHONE";
    public static final String SHAREDPREFERENCES_NICK_NAME = "NICK_NAME";
    public static final String FILE_PROVIDER = BuildConfig.APPLICATION_ID + ".fileprovider";
    public static final String CARD_PORTRAIT_BUCKET = "casres";
    public static final String CARD_PORTRAIT_DISK_PATH = "BCAImg/";
    /**
     * list每屏加载数
     */
    public static int PAGE_COUNT_LIMIT = 10;

    /**
     * 保单详情Url
     */
    public static final String BASEURL_POLICY_DETAIL = VERSION_TEST ? "http://m.test.e-baotong.cn/salary/policyDetail" : "https://m.e-bao.cn/salary/policyDetail";

    public static final String REQUEST_DEVICE = "Phone";

    /**
     * 险种百科url
     */
    public static final String WIKI_URL = VERSION_TEST ? "http://hxyn.e-baotong.cn/vue_test/#/wiki" : "http://hxyn.e-baotong.cn/vue/#/wiki";


    public static final String AGENT_CARD_LINK = VERSION_TEST ? "http://bsnsinsiap.test.e-baotong.cn/agent/mybsnscard" : "http://bsns.insiap.com:8090/agent/mybsnscard";

    /**
     * 微信支付授权域名
     */
    public static final String WX_PAY_URL = VERSION_TEST ? "http://wxuat.zhlic.com.cn/" : "http://wx.zhlic.com.cn/";

    /**
     * '推荐'品牌id
     */
    public static final int RECOMMEND_BRAND_ID = 100000;

    /**
     * 投保规则年龄约束最大值
     */
    public static final int MAX_AGE = 100;


    public static int CARD_HONOUR_IMG_WIDTH = 0;

    //8.0通知渠道
    public static final String UPDATE_CHANEL_NAME = "update_version";
    public static final String CHANNEL_ID = BuildConfig.APPLICATION_ID + "_1001";
    /**
     * company——id
     */
    public static final int COMPANY_ID = 3138;

    public static final String AUTH_URL = "http://b.insiap.com/auth.html?comId=" + COMPANY_ID + "&phone=";

    /**
     * 1表示非独立打版
     */
    public static final int CON_NORMAL = 1;
}
